﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media.Media3D;

namespace Eniux.Windows.ThreeDEngine.Helper
{
    /// <summary>
    /// 三维转换帮助类.
    /// </summary>
    public static class Transform3DHelper
    {
        #region 方法

        /// <summary>
        /// 组合两个Transform3D
        /// </summary>
        /// <param name="t1">第一个Transform3D</param>
        /// <param name="t2">第二个Transform3D</param>
        /// <returns>组合后的Transform3D</returns>
        public static Transform3D CombineTransform(Transform3D t1, Transform3D t2)
        {
            var g = new Transform3DGroup();
            g.Children.Add(t1);
            g.Children.Add(t2);
            return g;
        }

        #endregion
    }
}
